﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace OnlineAuction.TemplateMaster
{
    public partial class WebForm6 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            OnlineAuctionDataContext tk = new OnlineAuctionDataContext();
            Contact ct = new Contact();
            ct.name = this.TextBoxName.Text;
            ct.email = this.TextBoxMail.Text;
            ct.address = this.TextBoxAddress.Text;
            ct.phone = this.TextBoxPhone.Text;
            ct.title = this.TextBoxTitle.Text;
            ct.contents = this.TextBoxContent.Text;
            tk.Contacts.InsertOnSubmit(ct);
            tk.SubmitChanges();
        }
    }
}